home *** CD-ROM | disk | FTP | other *** search
/ EnigmA Amiga Run 1997 February / EnigmA AMIGA RUN 15 (1997)(G.R. Edizioni)(IT)[!][issue 1997-02][PLANET CD V].iso / enigma / earcd / editor / editor2 / textrmmr.lha / T.Rimmer / Example next >
Text File  |  1996-02-21  |  4KB  |  91 lines

  1.  
  2.  
  3. TextRimmer  V1.0
  4.  
  5.  
  6.  
  7. Copyright ©  1996 Al Metz
  8.  
  9.  
  10.  
  11. TextRimmer is a small freeware utility written with AMOS Pro which takes a text file and trims each line so that the lines are no longer than a specified number of characters.  I wrote it because word processors don't format text when you save it as an ASCII file.  What this means is when you view it from a text viewer (such as MuchMore) many of the words will be cut off at the right hand side of the screen.  Also if you try to edit the plain text word processor file with Ed (the text editor which comes with Workbench) you'd notice that Ed would try to put each paragraph on a single line and if the paragraphs were too long then some of the text would be lost.  Also many word processors  add extra blank lines when they output plain text files.  TextRimmer solves such problems!
  12.  
  13.  
  14.  
  15. This archive should contain the following files:
  16.  
  17.  
  18.  
  19.      TextRimmer
  20.  
  21.      TextRimmer.info
  22.  
  23.      ReadMe
  24.  
  25.      ReadMe.info
  26.  
  27.      Example
  28.  
  29.      Example.info
  30.  
  31.  
  32.  
  33. NOTE: The "ReadMe" and "Example" files are identical except that "ReadMe" is after using TextRimmer, "Example" is before using TextRimmer.
  34.  
  35.  
  36.  
  37. To install TextRimmer on a hard drive just drag it's icon where you want it.
  38.  
  39.  
  40.  
  41. To use TextRimmer you will need a plain ASCII text file.  Most word processors have an option to save a file as plain ASCII text.  Or you can use the "Example" file included with this archive.
  42.  
  43.  
  44.  
  45. Once you start TextRimmer you will be given a requestor asking you for the file to trim.  Then you will be given another requestor asking you for the destination file.  This is the name you want the modified file saved as (You can quit the program early by clicking "Cancel" in either requestor).  If the destination file already exists you will be asked if you are sure.
  46.  
  47.  
  48.  
  49. If the original file has an icon, it will be copied to the destination file.  This just takes a few seconds.  If the original file does not have an icon then neither will the destination file.
  50.  
  51.  
  52.  
  53. You will be asked for the number of columns.  You can enter any number (within reason) but I recommend 80 for text viewers such as MuchMore and 78 for Ed.
  54.  
  55.  
  56.  
  57. After that you will be asked if you want to eliminate extra blank lines.  If your word processor adds unwanted blank lines between paragraphs like Final Copy and Final Writer do when outputting a plain text file, you should enter "Y".  If you enter "Y" the program will change any multiple blank lines it encounters into single blank lines, and eliminate any single blank lines it finds.  If the text file doesn't have any unwanted blank lines enter "N".
  58.  
  59.  
  60.  
  61. You will then be asked if you want to view the output.  If you enter "Y" then you will see the text the way it will be printed to the output file, assuming you chose a length of 80 columns or less.  Printing all that text to the screen slows down the process a little so you may want to enter "N" for very large files in order to speed things up, in which case you will be shown numbers indicating the progress.  After you answer the program will start working.  When it's done you will hear a bell and be asked if you want to do another.
  62.  
  63.  
  64.  
  65. That's all there is to it!  I haven't tried it with any program files such as AmigaDOS scripts so I don't know if it would effect the way they run or not.  Naturally, I am not responsible for any damage that results from the use or misuse of this program.
  66.  
  67.  
  68.  
  69. This program is freeware so you don't have to send me anything if you use it, but I wouldn't mind if you did send me something even if it was just a postcard saying how you liked the program.  My address is:
  70.  
  71.  
  72.  
  73. Al Metz
  74.  
  75. 6O6 Inverness Avenue
  76.  
  77. Louisville, KY 4O214-1221
  78.  
  79. USA
  80.  
  81. (Sorry!  No Internet address....yet)
  82.  
  83.  
  84.  
  85. Be sure to try my version of Monopoly!  I believe it's on Aminet with the filename "AMonopolyV14.lha".
  86.  
  87.  
  88.  
  89. P.S.  To fans of a certain British sci-fi comedy program - Yes, this program was named after the original annoying hologram and yes, that's what the icons were inspired from too.
  90.  
  91.